Function |from_json
json/value::|from_json
Usage
|from_json<T>(json)
Generics
◻ T: Deserialize
Parameters
↳ json: Json (json::Json)
Return
↴ Option<T>
Return json as a value of type T, or none if it cannot be one.
Numbers, booleans, strings and null (for void) become the core types they fit in,
arrays become vectors, null becomes none for options, and data types are read as
they define, such as StringMap from an object of strings.
Secrets are never read from JSON.